.class Lcom/estrongs/android/pop/app/messagebox/WebActivity$MessageBoxWebChromeClient;
.super Landroid/webkit/WebChromeClient;
.source "WebActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/pop/app/messagebox/WebActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "MessageBoxWebChromeClient"
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/pop/app/messagebox/WebActivity;


# direct methods
.method private constructor <init>(Lcom/estrongs/android/pop/app/messagebox/WebActivity;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity$MessageBoxWebChromeClient;->a:Lcom/estrongs/android/pop/app/messagebox/WebActivity;

    invoke-direct {p0}, Landroid/webkit/WebChromeClient;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/estrongs/android/pop/app/messagebox/WebActivity;Lcom/estrongs/android/pop/app/messagebox/WebActivity$a;)V
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/messagebox/WebActivity$MessageBoxWebChromeClient;-><init>(Lcom/estrongs/android/pop/app/messagebox/WebActivity;)V

    return-void
.end method


# virtual methods
.method public onProgressChanged(Landroid/webkit/WebView;I)V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity$MessageBoxWebChromeClient;->a:Lcom/estrongs/android/pop/app/messagebox/WebActivity;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->i(Lcom/estrongs/android/pop/app/messagebox/WebActivity;)Landroid/widget/ProgressBar;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/ProgressBar;->getVisibility()I

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity$MessageBoxWebChromeClient;->a:Lcom/estrongs/android/pop/app/messagebox/WebActivity;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->i(Lcom/estrongs/android/pop/app/messagebox/WebActivity;)Landroid/widget/ProgressBar;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ProgressBar;->setVisibility(I)V

    :cond_0
    const/16 v0, 0xa

    if-ge p2, v0, :cond_1

    .line 3
    iget-object v1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity$MessageBoxWebChromeClient;->a:Lcom/estrongs/android/pop/app/messagebox/WebActivity;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->i(Lcom/estrongs/android/pop/app/messagebox/WebActivity;)Landroid/widget/ProgressBar;

    move-result-object v1

    iget-object v2, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity$MessageBoxWebChromeClient;->a:Lcom/estrongs/android/pop/app/messagebox/WebActivity;

    invoke-static {v2}, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->i(Lcom/estrongs/android/pop/app/messagebox/WebActivity;)Landroid/widget/ProgressBar;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/ProgressBar;->getMax()I

    move-result v2

    div-int/2addr v2, v0

    invoke-virtual {v1, v2}, Landroid/widget/ProgressBar;->setProgress(I)V

    goto :goto_0

    :cond_1
    const/16 v0, 0x64

    if-ge p2, v0, :cond_2

    .line 4
    iget-object v1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity$MessageBoxWebChromeClient;->a:Lcom/estrongs/android/pop/app/messagebox/WebActivity;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->i(Lcom/estrongs/android/pop/app/messagebox/WebActivity;)Landroid/widget/ProgressBar;

    move-result-object v1

    iget-object v2, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity$MessageBoxWebChromeClient;->a:Lcom/estrongs/android/pop/app/messagebox/WebActivity;

    invoke-static {v2}, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->i(Lcom/estrongs/android/pop/app/messagebox/WebActivity;)Landroid/widget/ProgressBar;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/ProgressBar;->getMax()I

    move-result v2

    mul-int v2, v2, p2

    div-int/2addr v2, v0

    invoke-virtual {v1, v2}, Landroid/widget/ProgressBar;->setProgress(I)V

    goto :goto_0

    .line 5
    :cond_2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity$MessageBoxWebChromeClient;->a:Lcom/estrongs/android/pop/app/messagebox/WebActivity;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->i(Lcom/estrongs/android/pop/app/messagebox/WebActivity;)Landroid/widget/ProgressBar;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ProgressBar;->setVisibility(I)V

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity$MessageBoxWebChromeClient;->a:Lcom/estrongs/android/pop/app/messagebox/WebActivity;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->b(Lcom/estrongs/android/pop/app/messagebox/WebActivity;)Z

    move-result v0

    if-nez v0, :cond_4

    iget-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity$MessageBoxWebChromeClient;->a:Lcom/estrongs/android/pop/app/messagebox/WebActivity;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->f(Lcom/estrongs/android/pop/app/messagebox/WebActivity;)Z

    move-result v0

    if-eqz v0, :cond_3

    goto :goto_1

    .line 7
    :cond_3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity$MessageBoxWebChromeClient;->a:Lcom/estrongs/android/pop/app/messagebox/WebActivity;

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->b(Lcom/estrongs/android/pop/app/messagebox/WebActivity;Z)Z

    .line 8
    :goto_0
    invoke-super {p0, p1, p2}, Landroid/webkit/WebChromeClient;->onProgressChanged(Landroid/webkit/WebView;I)V

    :cond_4
    :goto_1
    return-void
.end method

.method public onReceivedTitle(Landroid/webkit/WebView;Ljava/lang/String;)V
    .locals 0

    .line 1
    invoke-super {p0, p1, p2}, Landroid/webkit/WebChromeClient;->onReceivedTitle(Landroid/webkit/WebView;Ljava/lang/String;)V

    .line 2
    iget-object p1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity$MessageBoxWebChromeClient;->a:Lcom/estrongs/android/pop/app/messagebox/WebActivity;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->h(Lcom/estrongs/android/pop/app/messagebox/WebActivity;)Landroid/widget/TextView;

    move-result-object p1

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public openFileChooser(Landroid/webkit/ValueCallback;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/webkit/ValueCallback<",
            "Landroid/net/Uri;",
            ">;)V"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity$MessageBoxWebChromeClient;->a:Lcom/estrongs/android/pop/app/messagebox/WebActivity;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->c(Lcom/estrongs/android/pop/app/messagebox/WebActivity;)Landroid/webkit/ValueCallback;

    move-result-object v0

    if-eqz v0, :cond_0

    return-void

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity$MessageBoxWebChromeClient;->a:Lcom/estrongs/android/pop/app/messagebox/WebActivity;

    invoke-static {v0, p1}, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->a(Lcom/estrongs/android/pop/app/messagebox/WebActivity;Landroid/webkit/ValueCallback;)Landroid/webkit/ValueCallback;

    .line 3
    iget-object p1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity$MessageBoxWebChromeClient;->a:Lcom/estrongs/android/pop/app/messagebox/WebActivity;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->d(Lcom/estrongs/android/pop/app/messagebox/WebActivity;)Landroid/content/Intent;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {p1, v0, v1}, Landroidx/fragment/app/FragmentActivity;->startActivityForResult(Landroid/content/Intent;I)V

    return-void
.end method

.method public openFileChooser(Landroid/webkit/ValueCallback;Ljava/lang/String;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/webkit/ValueCallback<",
            "Landroid/net/Uri;",
            ">;",
            "Ljava/lang/String;",
            ")V"
        }
    .end annotation

    .line 4
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/app/messagebox/WebActivity$MessageBoxWebChromeClient;->openFileChooser(Landroid/webkit/ValueCallback;)V

    return-void
.end method

.method public openFileChooser(Landroid/webkit/ValueCallback;Ljava/lang/String;Ljava/lang/String;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/webkit/ValueCallback<",
            "Landroid/net/Uri;",
            ">;",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ")V"
        }
    .end annotation

    .line 5
    invoke-virtual {p0, p1, p2}, Lcom/estrongs/android/pop/app/messagebox/WebActivity$MessageBoxWebChromeClient;->openFileChooser(Landroid/webkit/ValueCallback;Ljava/lang/String;)V

    return-void
.end method
